﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class MasterPage_Product : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        int brandid = 0;
        int groupProduct = 0;
        int parentGroupProduct = 0;

        if (Request.QueryString["bi"] != null)
        {
            brandid = int.Parse(Request.QueryString["bi"].ToString());
        }
        if (Request.QueryString["gpi"] != null)
        {
            groupProduct = int.Parse(Request.QueryString["gpi"].ToString());
        }
        if (Request.QueryString["pgpi"] != null)
        {
            parentGroupProduct = int.Parse(Request.QueryString["pgpi"].ToString());
        }
        divNavigation.InnerHtml = NavigationViewer.Viewer(brandid, groupProduct, parentGroupProduct);
    }
}
